package eventStrategies.physicalModel;

import model.IPhysicalDataModel;
import controller.AbstractController;
import eventManager.AppEvent;
import eventStrategies.IEventResponse;
import events.ECodeEventList;
import events.physicalModel.RemovePuzzleEvent;

public class RemovePuzzleStrategy extends IEventResponse {

	private IPhysicalDataModel physModel;
	
	public RemovePuzzleStrategy(IPhysicalDataModel physModel) {
		super(ECodeEventList.REMOVE_PUZZLE);		
		this.physModel = physModel;
	}

	@Override
	public void execute(AppEvent event) {
		RemovePuzzleEvent fullEvent = (RemovePuzzleEvent) event;
		physModel.removePuzzle(fullEvent.puzzle);
	}

}
